#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
	printf("Pid:%d\n",getpid());
	FILE* fp=fopen("bite.txt","a");
	if(fp==NULL)
	{
		perror("fopen");
		return 1;
	}
	const char* str="Linux so easy";
	fprintf(stderr,"%s:%d\n",str,1234);
	fclose(fp);
	return 0;

       /* int fd=open("bite",O_RDONLY);
        if(fd<0){
                perror("open");
                return 1;
        }
        printf("fd:%d\n",fd);

        close(fd);
        return 0;*/
}

